package wli.web.util;

import java.util.*;

public class MyScreen {
    public static int  getWidth (int sw, int w) {
	return (new Double(""+w*(1.0*sw/1280))).intValue();
    }
    public static int  getHeight (int sh, int h) {
	return (new Double(""+h*(1.0*sh/1024))).intValue();
    }
    public static int  getButtonFont (int sw, int ft) {
	return (new Double(""+ft*(1.0*sw/1280))).intValue();
    }
}



